//2009/08/11 00:33:25
#include <string>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

using namespace std;

class ScoringEfficiency
{
public:
    double getPointsPerShot(vector <string> gameLog)
    {
        int total = 0;
        int field = 0;
        for (int i=0; i<gameLog.size(); i++)
        {
            if (gameLog[i] == "Made 2 point field goal")
            {
                total += 2;
                field ++;
            }
            else if (gameLog[i] == "Missed 2 point field goal") field ++;
            else if (gameLog[i] == "Made 3 point field goal")
            {
                total += 3;
                field ++;
            }
			else if(gameLog[i] == "Missed 3 point field goal") field ++;
			else if(gameLog[i] == "Made free throw") total ++;
        }
		return (double)(1.0 * total) / (1.0 * field + 0.5 * (gameLog.size() - field));
		 
    }
};
